module Rosarla
	# Give: (Optional) Command to be executed with each file
	# Expect: nil
	def self.haml(given_command = "")
		
		the_path = "./assetsBuild/"
		the_end_path = "./"
		the_files = self.get_files(the_path)
		
		(the_files).each do |this_file|
			this_output = self.exec("haml #{this_file}#{given_command}")
			renamed_file = this_file.gsub("haml", "htm")
			this_target = self.c_loc(renamed_file, the_path, the_end_path)
			self.write(this_target, this_output)
		end
		
	end
	
end